package cn.itsource.smartcampus.mapper;


import cn.itsource.smartcampus.domain.Student;
import cn.itsource.smartcampus.domain.Teacher;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author tianxin
* @description 针对表【t_student】的数据库操作Mapper
* @createDate 2024-05-23 09:51:52
* @Entity cn.itsource.smartcampus.domaincn.itsource.smartcampus.domain.Student
*/
@Mapper
public interface StudentMapper {
    /**
     *
     * @param id 根据id查找学生信息
     * @return
     */
    Student selectByPrimaryKey(Long id);

    /**
     * 查询全部
     * @return
     */
    List<Student> getAll();

    /**
     * 根据id删除学生信息
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Long id);

    /**
     * 添加学生信息
     * @param stu
     * @return
     */

    int insert(Student stu);



    /**
     * 修改写生信息
     * @param stu
     * @return
     */

    int updateByPrimaryKeySelective(Student stu);

    void batchAdd(List<Student> students);


}
